// 整合所有子路由
import Router from 'koa-router';

import project from 'src/routers/project';
import statics from 'src/routers/static';

const router = new Router({
  prefix: '/api',
});
// 项目相关路由
router.use('/project', project.routes(), project.allowedMethods());

// 静态资源相关路由
router.use('/statics', statics.routes(), statics.allowedMethods());

export default router;
